//
//  SelfItemInfo.m
//  JiaoX
//
//  Created by 尹桥印 on 14/11/16.
//  Copyright (c) 2014年 北京娇羞科技有限公司. All rights reserved.
//

#import "SelfItemInfo.h"

@implementation SelfItemInfo

+ (id)itemWithIcon:(NSString *)icon title:(NSString *)title subTitle:(NSObject *)subTitle hasNew:(BOOL)hasNew
{
    SelfItemInfo *item = [[self alloc] init];
    item.icon = icon;
    item.title = title;
    item.subtitle = subTitle;
    item.hasNew = hasNew;
    return item;
}

+ (id)itemWithTitle:(NSString *)title
{
    return [self itemWithIcon:nil title:title subTitle:nil hasNew:NO];
}

+ (id)itemWithIcon:(NSString *)icon title:(NSString *)title subTitle:(NSObject *)subTitle{
    return [self itemWithIcon:icon title:title subTitle:subTitle hasNew:NO];
}

+ (id)itemWithIcon:(NSString *)icon title:(NSString *)title{
    return [self itemWithIcon:icon title:title subTitle:nil];
}

@end
